#ifndef ADS1115_H
#define ADS1115_H

#include <QObject>
#include "i2c_dev/i2c_dev.h"

class ads1115 : public i2c_dev
{
    Q_OBJECT
private:

public:
    explicit ads1115(QObject *parent = nullptr,char *filename=const_cast<char*>("/dev/i2c-0"),unsigned char dev_addr = 0x48);

protected:

public:
    int read_data(unsigned char pointer_reg,unsigned char *buf,unsigned char len);
    int write_data(unsigned char pointer_reg,unsigned char *buf,unsigned char len);

signals:

};

#endif // ADS1115_H
